       <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
             <div class="row">
                    <div class="col-lg-12">
                        <h2 class="page-header">分类管理</h2>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <div class="row">
                    <div class="col-lg-12">
                              <div class="panel panel-default">
                        <div class="panel-heading">
                            创建新的产品分类  <?php if(isset($parent)){?><a href="<?=site_url()?>categories/viewCategory/<?=$parent->parent_id?>"><i class="fa fa-caret-left"></i> <?=$parent->name_cn?></a> <?php }?> <a class="btn btn-default btn-sm pull-right" href="<?=site_url()?>categories"><i class="fa fa-arrow-left"></i> 返回</a>
                       		<div class="clearfix"></div>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">      
                             <?php if(isset($msg)){?>
                        <?php foreach ($msg as $m):?>
                        <?php if($m['code']==1){?>
						<div class="alert alert-success">
						<?=$m['msg']?>
						</div>
						<?php }elseif($m['code']==2){?>
						<div class="alert alert-warning">
						<?=$m['msg']?>
						</div>
						<?php }else{?>
						<div class="alert alert-danger">
						<?=$m['msg']?>
						</div>
						<?php }?>
						<?php endforeach;?>
						<?php }?>
                        <form action="<?=current_url()?>" method="post">
                         <div class="catListRadio">
                     	   <div class="col-lg-4">
                     	   <div class="form-group">
                     	   <?=form_error('cat_id'); ?>
                        <ul class="list-unstyled">
                            <?=$category?>
                            </ul>
                            </div>
                            </div>
                            </div>
                            <div class="col-lg-5">
                            	<div class="form-group">
                            		<label>中文 *</label>
                            		<input type="text" name="name_cn" value="<?=set_value('name_cn')?>" class="form-control">
                            		<?=form_error('name_cn'); ?>
                            	</div>
                            	<div class="form-group">
                            		<label>EN *</label>
                            		<input type="text" name="name_en" value="<?=set_value('name_en')?>" class="form-control">
                            		<?=form_error('name_en'); ?>
                            	</div>
                            	<div class="form-group">
                            		<label>NL *</label>
                            		<input type="text" name="name_nl" value="<?=set_value('name_nl')?>" class="form-control">
                            		<?=form_error('name_nl'); ?>
                            	</div>
                            	<hr>
                            	<div class="form-group">
                            		<label>Description EN </label>
                            		<textarea class="form-control" rows="3" name="text_en"><?=set_value('text_en')?></textarea>
                            	</div>
                            	<div class="form-group">
                            		<label>Description NL </label>
                            		<textarea class="form-control" rows="3" name="text_nl"><?=set_value('text_nl')?></textarea>
                            	</div>
                            	<hr>
                            	<div class="form-group pull-right">
                            	<button class="btn btn-primary btn-sm" type="submit">创建</button>
                            	</div>
                            </div>
                            </form>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->              
                
            </div>
        </div>
       